<?php


namespace app\controller;
use think\facade\Db;
use think\facade\View;
use app\model\Goods;

class test
{
    public function index(){
//        $select = Db::table('shop_goods')->paginate(3);
//        print_r($select->render());

        $Db = new Goods();
        $select = $Db->getOne();



        View::assign('select',$select);

        return View::fetch();
    }
}